const fs= require('fs');
let ReadStream= fs.createReadStream('./data/input.txt');

var count=0;
ReadStream.on('data',(data)=>{
    count++;
})
ReadStream.on('end',(data)=>{
    console.log(count);
})
ReadStream.on('error',(err)=>{ 
    console.log(err);
})